package com.pug.user.po;

import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * @author RenGaoshuai
 * @date 2023/5/9 15:16
 * @description
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@TableName(value = "access_log")
public class AccessLog1PO {
    @ApiModelProperty(value = "id")
    private Long id;

    //请求时httpStatusCode代码，如：200,400,404等
    @ApiModelProperty(name = "响应码")
    private String statusCode;

    @ApiModelProperty(name = "请求IP")
    private String clientIp;

    @ApiModelProperty(name = "请求url")
    private String url;

    @ApiModelProperty(name = "请求方式，post,get")
    private String method;


    @ApiModelProperty(name = "请求头json数据")
    private String headersJsonData;

    @ApiModelProperty(name = "请求参数param的json数据")
    private String paramsJsonData;

    @ApiModelProperty(name = "请求参数json数据")
    private String requestJsonData;

    @ApiModelProperty(name = "响应参数json数据")
    private String responseJsonData;

    @ApiModelProperty(name = "耗时,单位ms")
    private Long timeConsuming;
    /**
     * clientId
     */
    @ApiModelProperty(value = "clientId")
    private String clientId;


    /**
     * 是否删除0否1是
     */
    @ApiModelProperty(value = "是否删除0否1是")
    private Integer isDelete;

    /**
     * 创建时间
     */
    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    /**
     * 更新时间
     */
    @ApiModelProperty(value = "更新时间")
    private Date updateTime;
}
